import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    component: () => import("@/layout"),
    children: [
      {
        path: "InstrumentPanel",
        component: () => import("@/page/InstrumentPanel.vue"),
      },
      {
        path: "collaborativeManagement",
        component: () => import("@/page/collaborativeManagement.vue"),
      },
      {
        path: "projectManagement",
        component: () => import("@/page/projectManagement.vue"),
      },
    ],
  },
  {
    path: "/lagen",
    component: () => import("@/page/lagen.vue"),
  },
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
